#ifndef QPROXYDIALOG_H
#define QPROXYDIALOG_H


#include <QtGui/QDialog>
#include "ui_proxydialog.h"


/**
 * This class represents the proxy dialog
 * 
 * @author gonwan (gonwan@gmail.com)
 * @version 1.0
 */
class QProxyDialog : public QDialog, public Ui::ProxyDialog
{
    Q_OBJECT

public:
    /**
     * Constructor
     * It sets up UI and does initialization
     * @param parent The parent widget
     */
    QProxyDialog(QWidget *parent = 0);

private:
    /**
     * This function initialize the class
     * It sets window size and read settings.
     * @return true if success
     */
    bool init();
    /**
     * This function reads settings
     */
    void readSettings();
    /**
     * This function write settings
     */
    void writeSettings();

private slots:
    /**
     * This slot is called when accepted
     * It saves settings.
     */
    void accept();

};


#endif
